Basic Library for WPF and Silverlight | ComponentOne
C1.Silverlight Namespace / C1PropertyPathHelper Class / CreateSelector Method / CreateSelector<T,X>(String) Method
Type of the element where the property path will be accessed.
Type of the result after evaluated the full property path.
The path.

In This Topic
    CreateSelector<T,X>(String) Method
    In This Topic
    Creates a Function to evaluate a given property path on a given object. For the property path: MyProperty1.MyProperty2 it will return the following function: i => i.MyProperty1.MyProperty2
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function CreateSelector
        (Of T,X)( _
       ByVal path As String _
    ) As Func(Of T,X)
    public static Func<T,X> CreateSelector<T,X>( 
       string path
    )

    Parameters

    path
    The path.

    Type Parameters

    T
    Type of the element where the property path will be accessed.
    X
    Type of the result after evaluated the full property path.
    Example
    For the property path: MyProperty1.MyProperty2 it will return the following function: i => i.MyProperty1.MyProperty2
    See Also